package com.raos.lottery.redis.constants;

/**
 * 抽奖活动常量
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/7/21 23:01
 */
public class LotteryConstants {

    /**
     * 表示正在抽奖的用户标记
     */
    public static final String DRAWING = "DRAWING";
    /**
     * 活动标记 LOTTERY:lotteryID
     */
    public static final String LOTTERY = "LOTTERY";
    /**
     * 奖品数据  LOTTERY_PRIZE:lotteryID:PrizeId
     */
    public static final String LOTTERY_PRIZE = "LOTTERY_PRIZE";
    /**
     * 默认奖品数据  DEFAULT_LOTTERY_PRIZE:lotteryID
     */
    public static final String DEFAULT_LOTTERY_PRIZE = "DEFAULT_LOTTERY_PRIZE";

    public enum PrizeTypeEnum {
        /**
         * 谢谢参与
         */
        THANK(-1),
        /**
         * 正常的
         */
        NORMAL(1),
        /**
         * 独特的
         */
        UNIQUE(2);

        private int value;

        private PrizeTypeEnum(int value) {
            this.value = value;
        }

        public int getValue() {
            return this.value;
        }
    }

    /**
     * 奖项缓存：LOTTERY_ITEM:LOTTERY_ID
     */
    public static final String LOTTERY_ITEM = "LOTTERY_ITEM";
    /**
     * 默认奖项： DEFAULT_LOTTERY_ITEM:LOTTERY_ID
     */
    public static final String DEFAULT_LOTTERY_ITEM = "DEFAULT_LOTTERY_ITEM";

}

